import type { TableColumn, FormField } from '@/components'

export const fields: FormField[] = [
]
export const modelValue = {
  checkYear: new Date().getFullYear()-1 + '',
  orgType: '0'
}

export const columns: TableColumn[] = [
  {
    key: 'operName',
    label: '组织名称',
    width: 200
  },
  {
    key: 'workNo',
    label: '组织编号'
  },
  {
    key: 'orgName',
    label: '法定代表人/负责人'
  },
  {
    key: 'deptName',
    label: '组织类别'
  },
  {
    key: 'title',
    label: '审核进度',
    width: 350
  },
  {
    key: 'operTime',
    label: '申请时间'
  },
  {
    key: 'actions',
    label: '操作',
    slot: true,
    fixed: 'right'
  }
]

export const dialogFields: FormField[] = [
  {
    key: 'typeId',
    label: '限制时间',
    tag: 'el-date-picker',
    attrs: {
      type: 'datetimerange',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
      format: 'YYYY-MM-DD HH:mm:ss',
      dateFormat: 'YYYY/MM/DD ddd',
      timeFormat: 'A hh:mm:ss'
    },
    validateRules: [
      {
        required: true,
        message: '请输入',
        trigger: 'change'
      }
    ]
  },
  {
    key: 'labelName',
    label: '账户名称',
    tag: 'ElInput',
    validateRules: [
      {
        required: true,
        message: '请输入',
        trigger: 'change'
      }
    ]
  },
  {
    key: 'labelRule',
    label: '使用人',
    tag: 'ElInput',
    validateRules: [
      {
        required: true,
        message: '请输入',
        trigger: 'change'
      }
    ]
  },
  {
    key: 'labelPattern',
    label: '删除阈值',
    tag: 'ElInput',
    validateRules: [
      {
        required: true,
        message: '请输入',
        trigger: 'change'
      }
    ]
  }
]
